#ifndef fooditem_h
#define fooditem_h

#include "Eatable.h"

class Food: public Eatable
{
private:
	int servingSizeGrams;

public:
	Food() : Eatable()
	{
	}

	Food(String name, String filename, NutritionalInfo& info, int servingSize = 100) :
		Eatable(name, filename, info)
	{
		servingSizeGrams = servingSize;
	}

	const int getServingSize()
	{
		return servingSizeGrams;
	}

	void operator=(Food& other)
	{
		this->name = other.getName();
		this->info = other.getNutritionalInfo();
		this->image = other.getImage();
		this->servingSizeGrams = other.getServingSize();
	}
};

#endif
